#!/bin/bash
REPDIR=/home/richard/work/am335x/repository/linux/
KERNELDIR=$REPDIR/kernel 
UBOOTDIR=$REPDIR/boot
MINIROOTFSDIR=$REPDIR/minirootfs
IMAGEDIR=$REPDIR/firmware
BUILDDIR=$REPDIR/build

SDCARDDIR=/media/richard/BOOT
TFTPDIR=/tftpboot
OUTPUTDIR=~/work/am335x/repository/linux/output
OUTPUT_UBOOTDIR=$OUTPUTDIR/uboot/
OUTPUT_KERNEL=$OUTPUTDIR/kernel/arch/arm/boot
ROOTFSDIR=~/work/am335x/repository/linux/rootfs
#KERNEL_VERSION=`cat $OUTPUT_KERNEL/../../../build_version`
KERNEL_VERSION=`cat $OUTPUT_KERNEL/../../../build_version`
UBOOT_VERSION=`cat $OUTPUT_KERNEL/../../../build_version`
UPDATE_SCRIPTDIR=$BUILDDIR/scripts/update/updatescript

UPDATEFILE=manltowoc_update
IMG_KERNEL=uImage
IMG_DTS=am335x-evmsk.dtb
IMG_UBOOT=u-boot_NAND.img
IMG_MLO=MLO_NAND

check_status() {
    ret=$?
    if [ "$ret" -ne "0" ]; then
        echo -e "\033[43;31m error: running failed, aborting... \033[0m"
        exit 1
    fi
}
